<?
	session_start();
	include('conn.php');
	$qry1 = "SELECT * from couriermast where status='1' order by courierid desc";

	$qry = mysql_query($qry1);
	$data = array();

	while($rows = mysql_fetch_array($qry))
	{
		$data[] = array
			(			
				"id" => $rows['courierid'],
				"name" => $rows['couriername']
			);
	}
	echo json_encode($data);
?>